package com.bjpowernode.dstaticproxy;

/*
    你心仪的女生
 */
public class XiaoHong implements Girl {
    @Override
    public void eat() {
        System.out.println("小红吃饭");//业务逻辑相关代码
        System.out.println("事务提交");//非业务逻相关辑代码
    }

    /*
        接收礼物
     */
    @Override
    public void receiveGift(int count) {
        System.out.println("收到:" + count + "件礼物");
        System.out.println("事务提交");
    }
}
